package com.huarui.params;

import java.util.Map;

public class ParamsHolder {
	private final static ThreadLocal<Map<String, Object>> params = new ThreadLocal<Map<String, Object>>();
	
	public static void setParams(Map<String, Object> map) {
		params.set(map);
	}
	
	public static Map<String, Object> getParams() {
		return params.get();
	}
	
	public static void clear() {
		params.remove();
	}
	
}
